package com.yanqu.road.server.cmd.unioncampwar;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.unionCampWar.UnionCampWar;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.protocol.CrossProtocol;
import com.yanqu.road.server.protocol.GameProtocol;


@Cmd(code = GameProtocol.S_UNION_CAMP_WAR_REGISTRATION_RANK_LIST, desc = "商帮报名期榜单")
public class UnionCampWarRegistrationRankListCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        if (null == player) {
            return;
        }
        UnionCampWar.UnionCampWarRegistrationRankListReqMsg reqMsg = UnionCampWar.UnionCampWarRegistrationRankListReqMsg.parseFrom(packet.getBytes());
        player.sendPacket(CrossProtocol.C3_UNION_CAMP_WAR_REGISTRATION_RANK_LIST, reqMsg.toBuilder());

    }

    @Override
    public void sendData(GamePlayer player) {
        if (null == player) {
            return;
        }

    }
}
